#include <iostream>
using namespace std;

class decimal
{
private:
    float value;
public:
    decimal(float value) : value(value) {}
    operator float()
    {
        return value;
    }
    decimal operator +(const decimal& d)
    {
        return decimal(this->value+d.value);
    }
    void operator +=(const decimal& d)
    {
        this->value+=d.value;
    }
    decimal& operator =(const decimal& d)
    {
        this->value=d.value;
        return *this;
    }
};

int main()
{
    decimal result(0);
    for(float i=0;i<=10;i++)
    {
        decimal di(i-0.1);
        result+=di;
    }
    cout<<result;
}
